<?
include("common/header.html");
include("../_made/le.cfg.php");
include("common/left.html");
$l=array(0,1,7,9);//默认没有9
$leader_account = array('kfb2015','PFT0020','family','yami','sjw12301','csj1');//天荣 宋 芳芳 燕枚 沈建文 老司机
if((!$_SESSION['memberID']) ||
   (!in_array($_SESSION['dtype'],$l) && !in_array($_SESSION['account'],$leader_account))){
        exit("<script>window.location='dlogin.html'</script>");
}
$pos_list = array('客服部','市场部','财务部','技术部','其他部门');
?>
<title>新增直属员工</title>
<link rel="stylesheet" type="text/css" href="css/distri.css"/>
<div class="r_content">
    <h3 class="mc_title">
        <span class="mctit_1"><span class="mctit_2">新增员工</span></span>
    </h3>
    <iframe name="ifr" style="display:none;"></iframe>
    <form action="addoper.php" target="ifr">
        <div class="personadd">
            <ul>
                <li><span class="txtrig"><span class="red">*</span>账&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号：</span><input style="color:#888;" type="text" onclick="if(this.value=='4位~12位英文或数字'){this.value='';this.style.color='#000';}" class="inptxt" value="4位~12位英文或数字" name="account"/></li>
                <li><span class="txtrig"><span class="red">*</span>初始密码：</span><input type="text" class="inptxt" name="ps" /></li>
                <li><span class="txtrig"><span class="red">*</span>姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名：</span><input type="text" class="inptxt" name="dname" /></li>
                <li><span class="txtrig">手机号码：</span><input type="text" class="inptxt" name="mobile" /></li>

                <li><span class="txtrig">联系&nbsp;QQ：</span><input type="text" class="inptxt" name="qq" /></li>
                <li><span class="txtrig">所属部门：</span>
                    <select name="position">
                        <?php foreach($pos_list as $pos_id=>$pos_name):?>
                            <option value="<?=$pos_id?>" <?=$pos_id==$m_info['position'] ? 'selected':''?>><?=$pos_name?></option>
                        <?php endforeach;?>
                    </select>
                </li>
                <div class="cl"></div>
            </ul>
            <div class="btn">
                <input type="submit" class="inpbtn" value="确认添加" />
                <input type="button" class="inpbtn" onclick="window.location='operlist.html'" value="返&nbsp;&nbsp;&nbsp;回" />
            </div>
        </div>
    </form>
</div>
<?php
//if(!$origin){$origin=array(array());$originisnull=1;}
//$s=new richmodule;
//$s->Fetch_Module_File("tpl/addoper.tpl");
//$s->Fetch_String("photo",$photo);
//$s->Fetch_String("name",$name);
////$s->Fetch_Array("origin", $origin,0,$originisnull);
//$s->Set_Array_On();
//$s->Output_Html();
?>
<?php include("common/footer.html");?>